#!/bin/bash

echo " "
#read -p "Is the target on $1 in FLASH mode ? Press <Enter> to start: "
lua $(dirname $0)/flash.lua $*

if [ $? -eq 0 ]; then
    lua $(dirname $0)/monitor.lua $1 `tty`
fi
